/**
 *文件工具类
 */
enum AssetsType{
  PNG,
  JPG,
  JPEG,
  SVG,
  HTML,
}

/**
 *统一获取资源文件路径
 * assetsName：文件名
 * preUrl：文件名前路径
 * assetsType：文件类型
 * assetsSuffix：文件后缀，文件类型
 */
String getAssetsPath(String assetsName, {String? preUrl,AssetsType? assetsType,String? assetsSuffix}) {
 final assets_images = "assets/images/";
 final assets_svgs = "assets/svgs/";
 final assets_htmls = "assets/htmls/";
 final png = ".png";
 final jpg = ".jpg";
 final jpeg = ".jpeg";
 final svg = ".svg";
 final html = ".html";
 if((assetsSuffix??'').isNotEmpty)return "${preUrl??assets_images}${assetsName}${assetsSuffix}";
 if(assetsType==null)assetsType = AssetsType.PNG;
 if(assetsType == AssetsType.PNG)return "${preUrl??assets_images}${assetsName}${png}";
 if(assetsType == AssetsType.JPG)return "${preUrl??assets_images}${assetsName}${jpg}";
 if(assetsType == AssetsType.JPEG)return "${preUrl??assets_images}${assetsName}${jpeg}";
 if(assetsType == AssetsType.SVG)return "${preUrl??assets_svgs}${assetsName}${svg}";
 if(assetsType == AssetsType.HTML)return "${preUrl??assets_htmls}${assetsName}${html}";
 return '';
}

 final drawable_logo_512 = getAssetsPath('logo_512');
 final drawable_no_data_img = getAssetsPath('no_data_img');
